package com.iwop.moto.service;

import com.iwop.moto.model.MCoupon;
import com.iwop.moto.model.SuperRecordModel;

import java.util.List;

/**
 * Created by mobom on 2016/11/2.
 */
public interface FCouponService {
    /**
     * 用户注册初始化查询抵用券 发放条件
     * @param srm
     * @return
     */
    List<SuperRecordModel> getCouponByType(SuperRecordModel srm);

    int insertUserCoupon(SuperRecordModel suprm);

    MCoupon getCouponById(String sid);

    /**
     * 更新抵用券发放数量
     * @param srm2
     */
    void modifyCouponProvideNum(SuperRecordModel srm2);

    void updateNumBySid(String sid);

    MCoupon getCouponByMoney(MCoupon mCoupon);

}
